package org.lzfto.flink.demo.business.flinkTest.entity;

import java.util.Date;

public class ClickEvent {
    public String userId;
    public String itemId;
    public Long timestamp; // 事件时间（毫秒）

    public ClickEvent() {}

    public ClickEvent(String userId, String itemId, Long timestamp) {
        this.userId = userId;
        this.itemId = itemId;
        this.timestamp = timestamp;
    }
    

    public String getUserId() {
		return userId;
	}

	public String getItemId() {
		return itemId;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	@Override
    public String toString() {
        return "ClickEvent{" +
                "userId='" + userId + '\'' +
                ", itemId='" + itemId + '\'' +
                ", timestamp=" + new Date(timestamp) +
                '}';
    }
}